Workflow.openJob

Opens a new workflow job for the process with name processName and passes any parameters to the new job as process attribute values. All passed process attributes must be declared as in parameters for the workflow process.

See also method #openJobAndCompleteFirstTask(String, String, String, String, String) for an alternative way of opening a new workflow job, and including the opening task as part of the process. Null can be specified to indicate that there are no parameters. All passed process attributes must be declared as in parameters for the workflow process.

Javascript example:

 var parms = {};
 parms.LOAN_ID = fields.LOAN_ID.value;
 parms.LOAN_TYPE = fields.LOAN_TYPE.value;
 var jobid = system.workflow.openJob("LOAN_APPLICATION", parms, null, "Application from public");
 

returns java.lang.String

Parameters

java.lang.String  processName,  java.util.Map  parameters,  java.lang.String  owner,  java.lang.String  reason,